/************************************************************************/
/*  									*/
/*  readcdbk_MSE.c							*/
/*									*/
/*  Tom Lookabaugh							*/
/*  August 14, 1987							*/
/*  Last Revision: August 15, 1987					*/
/*									*/
/*  DESCRIPTION								*/
/*	MSE version.							*/
/*	Reads the codebook.						*/
/*  RETURNS								*/
/*	No significant value.  						*/
/*  CALLS								*/
/*	error().							*/
/*									*/
/************************************************************************/

#include "stdvq.h"

readcdbk (cdbk, cdbksz) 

    double **cdbk;	/* pointer to codebook				*/
    int cdbksz;		/* codebook size in vectors			*/
    
{

    if ((*cdbk = (double *)calloc(cdbksz*cdbkdim, sizeof(double))) == NULL)
      error("insufficient memory (readcdbk 1)");

    if (fread(*cdbk, sizeof(double), cdbksz*cdbkdim, cdbkfile) !=
      cdbksz*cdbkdim) error("failed to write codebook (readcdbk 1)");


}
